package com.imy.virtual.client.hook.proxies.window.session;

import android.os.IInterface;

import com.imy.virtual.client.hook.base.MethodInvocationProxy;
import com.imy.virtual.client.hook.base.MethodInvocationStub;

public class WindowSessionPatch extends MethodInvocationProxy<MethodInvocationStub<IInterface>> {
	public WindowSessionPatch(IInterface session) {
		super(new MethodInvocationStub<>(session));
	}
	@Override
	public void onBindMethods() {
		addMethodProxy(new BaseMethodProxy("add"));
		addMethodProxy(new BaseMethodProxy("addToDisplay"));
		addMethodProxy(new BaseMethodProxy("addToDisplayWithoutInputChannel"));
		addMethodProxy(new BaseMethodProxy("addWithoutInputChannel"));
		addMethodProxy(new BaseMethodProxy("relayout"));
	}
	@Override
	public void inject() throws Throwable {
	}
	@Override
	public boolean isEnvBad() {
		return getInvocationStub().getProxyInterface() != null;
	}
}
